<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link  th:href="@{/js/plugins/layui/css/layui.css}" rel="stylesheet">
<script src="/js/plugins/layui/layui.js"></script>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-11">
				<div class="ibox">
					<div class="ibox-body">
							<div class="fixed-table-toolbar">
								<div class="columns pull-left">
									<button shiro:hasPermission="dict:add" type="button"
										class="btn  btn-primary" onclick="add(-1)">
										<i class="fa fa-plus hidden" aria-hidden="true"></i>添加
									</button>
									<button shiro:hasPermission="dict:del"  type="button"
										class="btn  btn-danger" onclick="delRows()">
										<i class="fa fa-trash hidden" aria-hidden="true"></i>批量删除
									</button>
								</div>
								<div class="columns pull-right col-md-0">
									<button type="button" class="btn btn-success" onclick="resetSearch()">重置</button>
								</div>
								<div class="columns pull-right col-md-1">
									<button type="button" class="btn btn-success" onclick="reLoad()">查询</button>
								</div>
								
	                            <form id="searchForm">
	                            <div class="columns pull-right col-md-2 nopadding">
									<select data-placeholder="选择类别" class="form-control chosen-select" name="type" id="type"
										tabindex="2" style="width: 100%">
										
									</select>
								</div>
							   </form>
								
							</div>
						    <table id="lgTable" data-mobile-responsive="true"></table>
					</div>
				</div>
			</div>
		</div>
		<div>
			<script type="text/javascript">
				var addBtn = 'hidden';
				var delBtn = 'hidden';
				var editBtn = 'hidden';
			</script>
		</div>
		<!--由于加载顺序原因标签无法再js中生效只能通过页面定义全局变量控制 -->
		<div shiro:hasPermission ="dict:add">
		    <script type="text/javascript"> addBtn = '';</script>
		</div>
		<div shiro:hasPermission ="dict:del">
		    <script type="text/javascript"> delBtn = '';</script>
		</div>
		<div shiro:hasPermission ="dict:edit">
		    <script type="text/javascript"> editBtn = '';</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/business/system/main/dict/index.js"></script>
</body>
</html>